<% content_for :sidebar do %>
  <%= sidebar_button_link 'New Timecard', new_timecard_path if can? :create, Timecard %>
<% end %>
<%= render 'timecards/timecards_table',
  timecards: @timecards,
  title: 'Listing Timecards',
  id: 'timecards',
  table_class: 'datatable'
%>
